import Vue from 'vue'
import Vuex from 'vuex'
import state from './store'
import mutations from './mutations'

Vue.use(Vuex)

// 头部的全局组件
// Vue.component('top-header',{
// 	template: '<header class="top-header"><router-link class="th-left" tag="div" to="/"><i class="iconfont back-icon">&#xe6bc;</i></router-link></header>'
// })

export default new Vuex.Store({
	state,
	mutations,
})